﻿using Microsoft.AspNetCore.Builder;

namespace Micro.Extensions.Log
{
    public static class TraceMiddlewareExtensions
    {
        /// <summary>
        /// 使用HTTP请求追踪
        /// </summary>
        public static IApplicationBuilder UseTrace(this IApplicationBuilder builder)
        {
            return builder.UseMiddleware<TraceMiddleware>();
        }
    }
}
